<template>
    <div>
      Shop-Index {{this.$route.params.id}}
      <br>
      取代this.$route.params，用props传参： <br>
      Shop-Index {{id}}
    </div>
</template>

<script>
    export default {
      name: "shop-index",
      props: {
        id: [Number, String],
        default: 0
      }
    }
</script>

<style scoped>

</style>
